#ifndef REQUESTINTERCEPTOR_H
#define REQUESTINTERCEPTOR_H

#include <QWebEngineUrlRequestInterceptor>

#ifdef USE_ADBLOCK
#include "third_party/ad-block/ad_block_client.h"

class RequestInterceptor : public QWebEngineUrlRequestInterceptor
{
    Q_OBJECT
public:
    RequestInterceptor(QObject *parent = nullptr);
    void interceptRequest(QWebEngineUrlRequestInfo &info);
private:
    AdBlockClient client;
};

#endif // REQUESTINTERCEPTOR_H
#endif
